package db

import (
	"fmt"
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
)

var My *gorm.DB

func init() {
	var err error
	dsn := "root:root@tcp(127.0.0.1:3306)/banzhuan?charset=utf8mb4&parseTime=True&loc=Local"
	My, err = gorm.Open(mysql.Open(dsn), &gorm.Config{})
	fmt.Println(err)
}
